#ifndef AFX_CMSG_H
#define AFX_CMSG_H

#include "CProc.h"

class CMsg
{
  friend class CProc;
  private:
    CProc m_proc;
  protected:
    HWND m_hWnd;
  public:
    CMsg();
    ~CMsg();
    HWND GetHandle();
    void SetHandle(HWND hWnd);
    LRESULT SendMessage(UINT uMsg, LPARAM lParam, WPARAM wParam);
    LRESULT PostMessage(UINT uMsg, LPARAM lParam, WPARAM wParam);
  protected:
    virtual LRESULT OnMessage(UINT uMsg, WPARAM wParam, LPARAM lParam);
};

#endif
